package diaosidadui.abstract_test;

public class AnimalDemo02 {
    public static void main(String[] args) {
        Animal2 a = new Cat02();
//        a.eat(a.getName());
        a.setName("加肥");
        a.setAge(2);
        a.eat();
        System.out.println(a.getName()+" -- " +a.getAge());
    }
}
